//
//  LKCaseModel.m
//  QuickCure
//
//  Created by 胡不归是大虾 on 9/13/16.
//  Copyright © 2016 haoge. All rights reserved.
//

#import "LKCaseModel.h"

@implementation LKCaseModel
//编码
-(void)encodeWithCoder:(NSCoder *)aCoder
{
    [aCoder encodeObject:_caseImage forKey:@"caseImage"];
    [aCoder encodeObject:_illnessTypeStr forKey:@"illnessType"];
    [aCoder encodeObject:_basicTypeStr forKey:@"basicTypeStr"];
    [aCoder encodeObject:_illnessDescStr forKey:@"illnessDescStr"];
    [aCoder encodeObject:_commitTime forKey:@"commitTime"];
}
//解码
-(instancetype)initWithCoder:(NSCoder *)aDecoder
{
    if (self = [super init]) {
        self.caseImage = [aDecoder decodeObjectForKey:@"caseImage"];
        self.illnessTypeStr = [aDecoder decodeObjectForKey:@"illnessType"];
        self.illnessDescStr = [aDecoder decodeObjectForKey:@"illnessDescStr"];
        self.basicTypeStr = [aDecoder decodeObjectForKey:@"basicTypeStr"];
        self.commitTime = [aDecoder decodeObjectForKey:@"commitTime"];
    }
    return self;
}

@end
